#pragma once
#include "BaseStrategy.h"

class Weapon;

class ShotPlayerStrategy : public BaseStrategy
{
public:
	ShotPlayerStrategy(void);
	~ShotPlayerStrategy(void);

	virtual bool init();

	virtual void processing( float dt );

	virtual void parseXml( xml_node node );

	virtual void onEnter();

	virtual void onExit();

	void shoot(float dt);

	CC_PROPERTY(Weapon*, _weapon, Weapon);
	CC_SYNTHESIZE(int, _numshoot, NumShoot);
	CC_SYNTHESIZE(float, _timeDelay, TimeDelay);

	CREATE_FUNC(ShotPlayerStrategy);

};

